// 蜂窝蜜造平台生成代码，如手工更改，请添加到 .beeignore 忽略生成

package com.fowo.api.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fowo.api.common.model.OptionItem;
import com.fowo.api.entity.TransactionReportReconciliation;
import com.fowo.api.model.transaction.report.reconciliation.TransactionReportReconciliationItemVo;
import com.fowo.api.model.transaction.report.reconciliation.TransactionReportReconciliationSearchParamPo;
import com.fowo.api.model.transaction.report.reconciliation.TransactionReportReconciliationVo;
import java.util.Date;
import java.util.List;
import java.util.Map;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface TransactionReportReconciliationMapper
  extends BaseMapper<TransactionReportReconciliation> {
  Page<TransactionReportReconciliationItemVo> pageSearch(
    @Param("page") Page page,
    @Param("search") TransactionReportReconciliationSearchParamPo search
  );
  List<OptionItem<TransactionReportReconciliationItemVo>> searchOptions(
    @Param("search") TransactionReportReconciliationSearchParamPo search
  );
  List<TransactionReportReconciliationItemVo> search(
    @Param("search") TransactionReportReconciliationSearchParamPo search
  );
  Date searchLastUpdateTime(
    @Param("search") TransactionReportReconciliationSearchParamPo search
  );
  /**
   * 搜索满足条件的所有记录的编号列表
   * @param search 搜索参数
   * @return 编号列表
   */
  List<Long> searchIds(
    @Param("search") TransactionReportReconciliationSearchParamPo search
  );
  /**
   * 搜索满足条件的记录数量
   * @param search 搜索参数
   * @return 记录数量
   */
  Long searchCount(
    @Param("search") TransactionReportReconciliationSearchParamPo search
  );
  Long getIdByReportingInterval(
    @Param("reportingInterval") String reportingInterval
  );

  List<Long> getIdsByReportingInterval(@Param("list") List<String> list);

  String getReportingIntervalById(@Param("id") Long id);

  List<Map<String, Object>> getReportingIntervalByIds(
    @Param("ids") List<Long> ids
  );
  TransactionReportReconciliationVo selectVoById(@Param("id") Long id);
  /**
   * 全部
   */
  List<TransactionReportReconciliationItemVo> allType(
    @Param("search") TransactionReportReconciliationSearchParamPo search
  );

  /**
   * 获取全部编号列表
   */
  List<Long> allTypeIds(
    @Param("search") TransactionReportReconciliationSearchParamPo search
  );

  /**
   * 获取全部的总数
   */
  Long allTypeCount(
    @Param("search") TransactionReportReconciliationSearchParamPo search
  );

  /**
   * 全部分页
   */
  Page<TransactionReportReconciliationItemVo> allTypePage(
    @Param("page") Page page,
    @Param("search") TransactionReportReconciliationSearchParamPo search
  );
  Date allTypeLastUpdateTime(
    @Param("search") TransactionReportReconciliationSearchParamPo search
  );
  /**
   * 无差异
   */
  List<TransactionReportReconciliationItemVo> noDifferent(
    @Param("search") TransactionReportReconciliationSearchParamPo search
  );

  /**
   * 获取无差异编号列表
   */
  List<Long> noDifferentIds(
    @Param("search") TransactionReportReconciliationSearchParamPo search
  );

  /**
   * 获取无差异的总数
   */
  Long noDifferentCount(
    @Param("search") TransactionReportReconciliationSearchParamPo search
  );

  /**
   * 无差异分页
   */
  Page<TransactionReportReconciliationItemVo> noDifferentPage(
    @Param("page") Page page,
    @Param("search") TransactionReportReconciliationSearchParamPo search
  );
  Date noDifferentLastUpdateTime(
    @Param("search") TransactionReportReconciliationSearchParamPo search
  );
  /**
   * 有差异
   */
  List<TransactionReportReconciliationItemVo> haveDifferent(
    @Param("search") TransactionReportReconciliationSearchParamPo search
  );

  /**
   * 获取有差异编号列表
   */
  List<Long> haveDifferentIds(
    @Param("search") TransactionReportReconciliationSearchParamPo search
  );

  /**
   * 获取有差异的总数
   */
  Long haveDifferentCount(
    @Param("search") TransactionReportReconciliationSearchParamPo search
  );

  /**
   * 有差异分页
   */
  Page<TransactionReportReconciliationItemVo> haveDifferentPage(
    @Param("page") Page page,
    @Param("search") TransactionReportReconciliationSearchParamPo search
  );
  Date haveDifferentLastUpdateTime(
    @Param("search") TransactionReportReconciliationSearchParamPo search
  );
}
